import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:second_hand/pages/profile/header.dart';

import 'change/change.dart';
import 'change/function_list.dart';

class ProfilePage extends StatelessWidget {
  const ProfilePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Colors.blue,
        title: const Text('我的', style: TextStyle(color: Colors.white)),
        centerTitle: true,
        actions: <Widget>[
          IconButton(
            onPressed:()=>{
              Get.to(ChangePage())
            },
            icon: Icon(Icons.settings,size: 30,),
          ),
        ],
      ),
      body: ListView(children: <Widget>[
        Header(),
        FunctionList(),
      ]),
    );
  }
}

